/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.io.Serializable;
import java.sql.Blob;
import java.util.Date;

/**
 *
 * @author USER
 */
public class Usuario implements Serializable {

    private String codusu;
    private String nomusu;
    private Double sexusu;
    private String numdoc;
    private String correo;
    private String codsen;
    private String numcel;
    private String dirusu;
    private String fecnac;
    private String tarcre;
    private String codver;
    private Double codban;
    private Double codper;
    private String usureg;
    private String fecreg;

    public Usuario() {
    }

    public String getCodusu() {
        return codusu;
    }

    public void setCodusu(String codusu) {
        this.codusu = codusu;
    }

    public String getNomusu() {
        return nomusu;
    }

    public void setNomusu(String nomusu) {
        this.nomusu = nomusu;
    }

    public Double getSexusu() {
        return sexusu;
    }

    public void setSexusu(Double sexusu) {
        this.sexusu = sexusu;
    }

    public String getNumdoc() {
        return numdoc;
    }

    public void setNumdoc(String numdoc) {
        this.numdoc = numdoc;
    }

    public String getCorreo() {
        return correo;
    }

    public void setCorreo(String correo) {
        this.correo = correo;
    }

    public String getCodsen() {
        return codsen;
    }

    public void setCodsen(String codsen) {
        this.codsen = codsen;
    }

    public String getNumcel() {
        return numcel;
    }

    public void setNumcel(String numcel) {
        this.numcel = numcel;
    }

    public String getDirusu() {
        return dirusu;
    }

    public void setDirusu(String dirusu) {
        this.dirusu = dirusu;
    }

    public String getFecnac() {
        return fecnac;
    }

    public void setFecnac(String fecnac) {
        if (fecnac != null) {
            if (!fecnac.equals("")) {
                if (fecnac.substring(4, 5).equals("-")) {
                    fecnac = fecnac.substring(8, 10) + "/" + fecnac.substring(5, 7) + "/" + fecnac.substring(0, 4);
                }
            }
        }
        this.fecnac = fecnac;
    }

    public String getTarcre() {
        return tarcre;
    }

    public void setTarcre(String tarcre) {
        this.tarcre = tarcre;
    }

    public String getCodver() {
        return codver;
    }

    public void setCodver(String codver) {
        this.codver = codver;
    }

    public Double getCodban() {
        return codban;
    }

    public void setCodban(Double codban) {
        this.codban = codban;
    }

    public Double getCodper() {
        return codper;
    }

    public void setCodper(Double codper) {
        this.codper = codper;
    }

    public String getFecreg() {
        return fecreg;
    }

    public void setFecreg(String fecreg) {
        if (fecreg != null) {
            if (!fecreg.equals("")) {
                if (fecreg.substring(4, 5).equals("-")) {
                    fecreg = fecreg.substring(8, 10) + "/" + fecreg.substring(5, 7) + "/" + fecreg.substring(0, 4);
                }
            }
        }
        this.fecreg = fecreg;
    }

    public String getUsureg() {
        return usureg;
    }

    public void setUsureg(String usureg) {
        this.usureg = usureg;
    }
}
